﻿@model KKU.RBSFPP.Shared.DAC.PrivilegeLevel

@{
    ViewBag.Title = "Create";
}

@Html.Partial("_AccountMenu")

<h3><span class="label label-success"><span class="glyphicon glyphicon-plus"></span> เพิ่มสิทธิ์</span></h3>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

   
    <fieldset>
       
        <legend></legend>

       <h4>ชื่อ</h4>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Name, new { @class="form-control" ,placeholder="ชื่อสิทธิ์"})
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <h4>รายละเอียด</h4>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Description, new { @class="form-control" ,placeholder="รายละเอียด"})
            @Html.ValidationMessageFor(model => model.Description)
        </div>

       
         <legend></legend>

        <p>
            <a href=@Url.Action("Index", "Privilege") class="btn btn-danger"><span class="glyphicon glyphicon-remove-circle"></span> ยกเลิก</a>
            <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok-circle"></span> ตกลง</button>
        </p>


      
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
